{config_load file="$language/lang.conf" section="index"}
{$box_ADMIN_MENU}
<!-- Основной блок -->
<div id="wrapper">
	<!-- Шапка -->
	<div id="header">
		<div class="left"></div>
		<div class="header-left">
			<!-- Лого и контакты -->
			<div class="logo-contacts">
				<div class="logo">
					<h1><a href="{$index}" title="{$smarty.const.STORE_OWNER}">{$smarty.const.STORE_NAME}</a></h1>
					{if $smarty.const.STORE_OWNER}<span>{$smarty.const.STORE_OWNER}</span>{/if}
				</div>
				<div class="contacts bold">
					<div class="phone">{$smarty.const.STORE_TELEPHONE}</div>
					<div class="icq"><span>{#templatica_index_icq#}:</span> {$smarty.const.STORE_ICQ}</div>
				</div>
				<div class="clear"></div>
			</div>
			<!-- #Лого и контакты -->
			<!-- Меню -->
			<ul class="nav">
				<li{$1}><a href="{$mainpage}"><span>{#text_mainpage#}</span></a></li>
				{if $account}{if $smarty.session.customer_id}
				<li{$2}><a href="{$account}"><span>{#link_account#}</span></a></li>
				{/if}{/if}
				<li{$3}><a href="{$cart}"><span>{#link_cart#}</span></a></li>
				<li {$7}><a href="{$price_list}"><span>{#price_list#}</span></a></li>
				<li{$4}><a href="{$checkout}"><span>{#link_checkout#}</span></a></li>
				{if $account}{if $smarty.session.customer_id}
				<li{$5}><a href="{$logoff}"><span>{#link_logoff#}</span></a></li>
				{else}
				<li{$6}><a href="{$login}"><span>{#link_login#}</span></a></li>
				{/if}{/if}
			</ul>
			<!-- #Меню -->
		</div>
		<div class="right"></div>
		<div class="header-right">
			<!-- Меню юзера -->
			<div class="user-menu">
				{$box_LOGIN}
				{if $account}{if $smarty.session.customer_id}
				<!-- Для авторизированного -->
				<h3>{#templatica_index_hello#}, {php}echo $_SESSION['customer_first_name'];{/php}</h3>
				<ul class="menu-box">
					<li><a href="account.php" title="{#templatica_index_account_title#}">{#templatica_index_account#}</a></li>
					<li><a href="address_book.php" title="{#templatica_index_address_title#}">{#templatica_index_address#}</a></li>
					<li><a href="account_password.php" title="{#templatica_index_pass_title#}">{#templatica_index_pass#}</a></li>
				</ul>
				<ul class="menu-box">
					<li><a href="account_edit.php" title="{#templatica_index_profile_title#}">{#templatica_index_profile#}</a></li>
					<li><a href="account_history.php" title="{#templatica_index_orders_title#}">{#templatica_index_orders#}</a></li>
					<li><a href="logoff.php" title="{#templatica_index_loguot_title#}">{#templatica_index_logout#}</a></li>
				</ul>
				<!-- #Для авторизированного -->
				{/if}{/if}
				<div class="clear"></div>
			</div>
			<!-- #Меню юзера -->
			<!-- Корзина -->
			{$box_CART}
			<!-- #Корзина -->
		</div>
	</div>
	<!-- #Шапка -->
<div class="clear"></div>
<div id="middle">
	<!-- Контент -->
	<div id="container">
		<div id="content">
			<div class="content-top">
				<div class="b-left"></div>
				<div class="c-top">
					{$box_SEARCH}
					{$box_CURRENCIES}
					<div class="clear"></div>
				</div>
				<div class="b-right"></div>
				<div class="c-foo">
					{$navtrail}
				</div>
			</div>
			<div class="clear"></div>
			{$text}
			{$main_content}
		</div>
	</div>
	<!-- #Контент -->
	<!-- Левая колонка -->
	<div class="sidebar">
		{$box_CATEGORIES}
		{$box_SEARCHTOP}
		{$box_MANUFACTURERS}
		{$box_MANUFACTURERS_INFO}
		{$box_BESTSELLERS}
		{$box_ADMIN}
		{$box_vote}
		{$box_CONTENT}
		{$box_ADD_QUICKIE}
		{$box_LAST_VIEWED}
		{$box_REVIEWS}
		{$box_SPECIALS}
		{$box_FEATURED}
		{$box_LATESTNEWS}
		{$box_ARTICLES}
		{$box_ARTICLESNEW}
		{$box_AUTHORS}
		{$box_DOWNLOADS}
		{$box_AFFILIATE}
		{$box_WHATSNEW}
		{$box_NEWSLETTER}
		{$box_INFOBOX}
		{$box_LANGUAGES}
		{$box_FAQ}
	</div>
	<!-- .Левая колонка -->
</div>
<div id="footer">
	<div class="left"></div>
		<ul class="footer-content">
			<li>
				&copy; {php} echo date('Y');{/php} <a href="{$index}" title="{$smarty.const.STORE_OWNER}">{$smarty.const.STORE_NAME}</a><br />
				Дизайн - <a href="http://templatica.ru" target="_blank">Templatica</a>
				<!-- Прошу не удалять копирайт. Оставленные копирайты - хороший стимул для дальнейшей поддержки с моей стороны -->
			</li>
			<li>
				<span class="a-title">{#templatica_index_address2#}:</span>
				{if $smarty.const.STORE_NAME_ADDRESS}
				<span class="a-content">{$smarty.const.STORE_NAME_ADDRESS}</span>
				{/if}
			</li>
			<li>
				<span class="a-title">{#templatica_index_phone#}:</span>
				{if $smarty.const.STORE_TELEPHONE}
				<span class="a-content">{$smarty.const.STORE_TELEPHONE}</span>
				{/if}
			</li>
			<li>
				<span class="a-title">{#templatica_index_email#}:</span>
				{if $smarty.const.STORE_OWNER_EMAIL_ADDRESS}
				<span class="a-content">{$smarty.const.STORE_OWNER_EMAIL_ADDRESS}</span>
				{/if}
				{if $smarty.const.STORE_ICQ}
				<span class="a-content">{#templatica_index_icq#}: {$smarty.const.STORE_ICQ}</span>
				{/if}
				{if $smarty.const.STORE_SKYPE}
				<span class="a-content">{#templatica_index_skype#}: {$smarty.const.STORE_SKYPE}</span>
				{/if}
			</li>
		</ul>
	<div class="right"></div>
</div>
<div class="foonet-two">
	<div class="foo-left">
	</div>
	<div class="foo-right">
		<!-- Место для счетчиков -->
		<a href="#"><img src="{$tpl_path}img/banner-blank.gif" width="88" height="31" alt="Banner" /></a>
		<a href="#"><img src="{$tpl_path}img/banner-blank.gif" width="88" height="31" alt="Banner" /></a>
		<a href="#"><img src="{$tpl_path}img/banner-blank.gif" width="88" height="31" alt="Banner" /></a>
	</div>

</div>
<div class="clear"></div>